package com.yeh.common.util;

import java.util.List;

/**
 * 
 * <p>Title: CollectionUtil</p>
 * <p>Description: 集合工具类</p>
 * <p>Company:  Co.</p>
 * <p>Package: com.yeh.common.util</p>
 * @author <a href="mailto:yehshuai@126.com">叶帅</a>  
 * <p>DateTime: 2015年9月9日 ★  下午3:09:00</p> 
 * @Version V1.0.0
 */
public class CollectionUtil {
	
	/**
	 * 
	 * @Title: isEmptyList
	 * @Description: 验证List集合为空
	 * @param @param list
	 * @param @return    
	 * @return boolean
	 * @throws
	 */
	@SuppressWarnings("rawtypes")
	public static boolean isEmptyList(List list){
		return (null == list)||(list.size() == 0);
	}

	/**
	 * 
	 * @Title: isNotEmptyList
	 * @Description: 判断集合是否为空
	 * @param @param list
	 * @param @return    
	 * @return boolean
	 * @throws
	 */
	@SuppressWarnings("rawtypes")
	public static boolean isNotEmptyList(List list){
		 return !isEmptyList(list);
	}
}
